package com.blyat.xsoft.auth.restful.entity;

import com.blyat.xsoft.kernel.restful.entity.XSoftEntity;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * @author syh
 * @date 2019/10/21
 **/
@Alias("sysRole")
public class Role extends XSoftEntity {

    private String name;
    private String code;
    private List<Authority> authorities;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Authority> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(List<Authority> authorities) {
        this.authorities = authorities;
    }
}
